package com.wfs.suanfa.lock;

import java.util.concurrent.locks.ReentrantReadWriteLock;

public class ReentrantReadWriteLock2 {

    public static void main(String[] args) {
        ReentrantReadWriteLock lock=new ReentrantReadWriteLock();
        lock.readLock();

        lock.writeLock();
        System.err.println("21321");
    }
}
